package com.dd.service;

import com.dd.entity.Book;
import com.dd.mapper.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService{

    @Autowired
    private BookMapper bookMapper;
    @Override
    public List<Book> selectAllBooks() {
        return bookMapper.selectAllBooks();
    }
}
